package com.vogue.supplymall.account.domain.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 收货地址
 * 
 * @author 崔岳
 *
 */
@Entity
@Table(name = "address")
public class Address extends BaseEntity implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 6252016448391505833L;

	/** 收货人姓名 */
	private String name;
	
	/** 收货人手机 */
	private String tel;
	
	/** 收货地址 */
	private String addr;
	
	/** 标签类型（1：个人 2：家 3：公司 4：店铺） */
	private Integer type = 1;
	
	/** 默认标志（0：否 1：是） */
	private Boolean defaultflag = false;
	
	/** 系统唯一码id */
	private Long syscodeid = 0L;
	
	/** 所属机构id（门店级别） */
	private Long organid = 0L;
	
	/** 所属用户id */
	private Long userid = 0L;

	/** 区域编码 */
    private String area;

    /** 省编码 */
    private String province;

    /** 市编码 */
    private String city;

    /** 区编码 */
    private String country;
    
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Boolean getDefaultflag() {
		return defaultflag;
	}

	public void setDefaultflag(Boolean defaultflag) {
		this.defaultflag = defaultflag;
	}

	public Long getSyscodeid() {
		return syscodeid;
	}

	public void setSyscodeid(Long syscodeid) {
		this.syscodeid = syscodeid;
	}

	public Long getOrganid() {
		return organid;
	}

	public void setOrganid(Long organid) {
		this.organid = organid;
	}

	public Long getUserid() {
		return userid;
	}

	public void setUserid(Long userid) {
		this.userid = userid;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

}
